package com.harveyguo.nihonngo.exception;

/**
 * @Author：HarveyGuo
 * @Package：com.harveyguo.nihonngo.exception
 * @Project：BestReading_back
 * @name：BizException
 * @Date：2023/2/16 16:50
 * @Filename：BizException
 * @Describe：Do something
 */
public class BizException extends RuntimeException{

    private final Integer code;

    public BizException(ExceptionType exceptionType) {
        super(exceptionType.getMessage());
        code = exceptionType.getCode();
    }

    public  Integer getCode() {
        return code;
    }



}
